package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GysptWarehousePickingitemMapper;
import com.ruoyi.gcgl.domain.GysptWarehousePickingitem;
import com.ruoyi.gcgl.service.IGysptWarehousePickingitemService;
import com.ruoyi.common.core.text.Convert;

/**
 * 领料单项Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-01
 */
@Service
public class GysptWarehousePickingitemServiceImpl implements IGysptWarehousePickingitemService 
{
    @Autowired
    private GysptWarehousePickingitemMapper gysptWarehousePickingitemMapper;

    /**
     * 查询领料单项
     * 
     * @param id 领料单项主键
     * @return 领料单项
     */
    @Override
    public GysptWarehousePickingitem selectGysptWarehousePickingitemById(Long id)
    {
        return gysptWarehousePickingitemMapper.selectGysptWarehousePickingitemById(id);
    }

    /**
     * 查询领料单项列表
     * 
     * @param gysptWarehousePickingitem 领料单项
     * @return 领料单项
     */
    @Override
    public List<GysptWarehousePickingitem> selectGysptWarehousePickingitemList(GysptWarehousePickingitem gysptWarehousePickingitem)
    {
        return gysptWarehousePickingitemMapper.selectGysptWarehousePickingitemList(gysptWarehousePickingitem);
    }

    /**
     * 新增领料单项
     * 
     * @param gysptWarehousePickingitem 领料单项
     * @return 结果
     */
    @Override
    public int insertGysptWarehousePickingitem(GysptWarehousePickingitem gysptWarehousePickingitem)
    {
        return gysptWarehousePickingitemMapper.insertGysptWarehousePickingitem(gysptWarehousePickingitem);
    }

    /**
     * 修改领料单项
     * 
     * @param gysptWarehousePickingitem 领料单项
     * @return 结果
     */
    @Override
    public int updateGysptWarehousePickingitem(GysptWarehousePickingitem gysptWarehousePickingitem)
    {
        return gysptWarehousePickingitemMapper.updateGysptWarehousePickingitem(gysptWarehousePickingitem);
    }

    /**
     * 批量删除领料单项
     * 
     * @param ids 需要删除的领料单项主键
     * @return 结果
     */
    @Override
    public int deleteGysptWarehousePickingitemByIds(String ids)
    {
        return gysptWarehousePickingitemMapper.deleteGysptWarehousePickingitemByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除领料单项信息
     * 
     * @param id 领料单项主键
     * @return 结果
     */
    @Override
    public int deleteGysptWarehousePickingitemById(Long id)
    {
        return gysptWarehousePickingitemMapper.deleteGysptWarehousePickingitemById(id);
    }
}
